package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.dto.MillionaireConsumerAccountRecordDto;
import cn.com.duiba.millionaire.center.api.dto.PagenationDto;
import cn.com.duiba.millionaire.center.api.remoteservice.RemoteMillionaireAccountRecordService;
import cn.com.duiba.millionaire.center.api.requestParam.AccountRecordRequestParam;
import cn.com.duiba.millionaire.center.biz.service.ConsumerAccountRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by qianjue on 2018/1/30.
 */
@RestController
public class RemoteMillionaireAccountRecordServiceImpl implements RemoteMillionaireAccountRecordService {

	@Autowired
	ConsumerAccountRecordService consumerAccountRecordService;

	@Override
	public PagenationDto<MillionaireConsumerAccountRecordDto> queryAccountRecordPage(
			AccountRecordRequestParam param) {
		return consumerAccountRecordService.queryAccountRecordPage(param);

	}

	@Override
	public List<MillionaireConsumerAccountRecordDto> queryAccountListByParam(
			AccountRecordRequestParam param) {
		return consumerAccountRecordService.queryAccountListByParam(param);
	}
}
